package com.example.demo.spark;

import spark.Request;
import spark.Response;

import static spark.Spark.get;

/**
 * @author lufei
 * @version 1.0
 * @created 18-5-11
 */
public class SparkTest {
    public static void main(String[] args) {
        get("/spark/hello", ((request, response) -> "helloworld"));//http://localhost:4567/spark/hello
        get("/spart/test", (Request request, Response response) -> {
            String name = "";
            return name;
        });
    }
}
